package com.good.shopping.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

// 开启了aspect动态代理模式,对外暴露代理对象  开启aspect 动态代理模式，以后的动态代理都是aspect创建的
@EnableAspectJAutoProxy(exposeProxy = true)
// 整合redis作为session存储  整合SpringSession完成session共享问题
@EnableRedisHttpSession
// RabbitMQ
@EnableRabbit
@MapperScan("com.good.shopping.order.dao")
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class ShoppingOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShoppingOrderApplication.class, args);
    }

}
